package com.bwie.agent.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bwie.common.utils.PageUtils;
import com.bwie.common.utils.Query;

import com.bwie.agent.dao.RolesAndPermissionsDao;
import com.bwie.agent.entity.RolesAndPermissionsEntity;
import com.bwie.agent.service.RolesAndPermissionsService;


@Service("rolesAndPermissionsService")
public class RolesAndPermissionsServiceImpl extends ServiceImpl<RolesAndPermissionsDao, RolesAndPermissionsEntity> implements RolesAndPermissionsService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<RolesAndPermissionsEntity> page = this.page(
                new Query<RolesAndPermissionsEntity>().getPage(params),
                new QueryWrapper<RolesAndPermissionsEntity>()
        );

        return new PageUtils(page);
    }

}